package com.whp.yky.yky.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.whp.yky.yky.entity.poentity.Document;

import java.util.List;

public interface DocumentService {
    public boolean insertDocumentInfo(Document document);
    public boolean updateDocumentInfo(Document document);
    public IPage<Document> getDocumentInfo(IPage<Document> page,Document document);
    public boolean deleteDocumentInfo (int id);
    public Document getDocumentInfoById(int id);
    public boolean fakeDeleteDocumentInfo(int id);

    IPage<Document> getReduceDocumentInfo(IPage<Document> page,Document document);

    List<Document> getDocumentList();

    boolean reduceDocumentInfo(int id);
}
